<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      let arr = [10, 200, 33, 24, 0, 15, 0, 66, 17, 98];
      let arr1 = [];
      let sum = 0;
      let sum1 = 0;
      let max = arr[0];
      let least = arr[0];
      let maxi = 0;

      for (let i = 0; i < arr.length; i++) {
        if (arr[i] !== 0) {
          arr1.push(arr[i]);
        }
        sum += arr[i];
        if (arr[i] % 2 !== 0) {
          sum1 += arr[i];
        }
        if (arr[i] > max) {
          max = arr[i];
          console.log(i);
        }
        if (arr[i] < least) {
          least = arr[i];
          console.log(i);
        }
      }
      for (let i = 0; i < arr.length; i++) {}
      console.log(arr1);
      console.log(sum);
      console.log(sum1);
      console.log(max);
      console.log(least);
    </script>
  </body>
</html>
